<%@ page language="java"   pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/include.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'userinfo_list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
      <table width="100%">
      		<tr bgcolor="#EEEEEE">
      			<th>序号</th>
      			<th>登录名</th>
      			<th>公司名称</th>
      			<th>联系方式</th>
      			<th>邮件</th>
      			<th>创建日期</th>
      			<th>操作</th>
      		</tr>
      		<c:if test="${fn:length(pageDataLists.records)==0}">
		     <tr  bgcolor="#FFFFFF">
		     	<td colspan="7" align="center">---无记录---</td>
		     </tr>
		    </c:if>
			<c:forEach items="${pageDataLists.records}" var="item" varStatus="status" >
				<tr bgcolor="#FFFFFF" id="recordTr${status.index }" 
				     onmouseover="this.style.background='#ebe9e8'; "
				     onmouseout="this.style.background='#FFFFFF'; this.style.borderColor=''" align="center">
					<td>&nbsp;${status.count }</td>
					<td>&nbsp;${item.username }</td>
					<td>&nbsp;${item.company }</td>
					<td>&nbsp;${item.phone }</td>
					<td>&nbsp;${item.mail }</td>
					<td>&nbsp;<fmt:formatDate value="${item.createtime }" /></td>
					<td><a href="javascript:void(0)">查看</a></td>
				</tr>
			</c:forEach>
      		<tr bgcolor="#EEEEEE">
      			<td colspan="7">
      				<p:pageSplit pageNo="${pageDataLists.pageNo}" url="userinfo_list.do" count="${pageDataLists.totalRecords}" pageSize="${pageDataLists.pageSize}"/>
      			</td>
      		</tr>
      </table>
  </body>
</html>
